﻿<!-- #include file="mymin.asp" -->
<%
Dim stdarticle,stdlist,stdtopic,stdpost
stdarticle="[center][b]{title}[/b][/center]{ad2}[div=odd]{content}[/div][div=even]发布：{time}[br]人气：{hit}[br]来源：{source}[br]分享：{weibo}[br]收藏：{keep}[/div][nav]※网友评论[/nav][div=odd]{discuss}[/div][nav]※快速评论[/nav]{input}{next}{prev}[nav]※相关内容[/nav]{rnd}{ad3}"
stdlist="{ad2}{list}[nav]※相关内容[/nav]{rnd}{ad3}"
stdtopic="{theme}[br]{post}[br]{ad4}{list}{admin}"
stdpost="[center][b]{title}[/b][/center]{ad5}[div=odd]{content}[/div][div=even]作者：{source}[br]签名：{sign}[br]人气：{hit}[br]发布：{time}[br]修改：{lasttime}[br]分享：{weibo}[br]收藏：{keep}[/div]{admin}[br][div=odd]{discuss}[br]{input}[/div]"

If Request("submit1") <> "" Then
Dim act
act = Request.querystring("act")

Select Case act
	Case "art":tplArticle=forQuote(Request.Form("tplArticle"))
	Case "list":tplList=forQuote(Request.Form("tplList"))
	Case "topic":tplTopic=forQuote(Request.Form("tplTopic"))
	Case "post":tplPost=forQuote(Request.Form("tplPost"))
End Select

'----------------------------------------------------------------
'	生成layout.asp文件
'----------------------------------------------------------------
dim HU_Config,HU_File

HU_File= "../../config/tpl.asp"'生成bbs.asp文件路径

HU_Config="<"&"%"
HU_Config=HU_Config+chr(13)&chr(10)&"tplArticle="""&tplArticle&""""
HU_Config=HU_Config+chr(13)&chr(10)&"tplList="""&tplList&""""
HU_Config=HU_Config+chr(13)&chr(10)&"tplTopic="""&tplTopic&""""
HU_Config=HU_Config+chr(13)&chr(10)&"tplPost="""&tplPost&""""
HU_Config=HU_Config+chr(13)&chr(10)&"%"&">"
Call savetofile(HU_Config,HU_File)

Response.Write "<meta http-equiv=""refresh"" content=""1;url=index.asp?sid="&sid&"""><title></title></head><body><div class=""main320"">"
Response.Write "成功设置！正在返回..."
else%>
<style type="text/css">
form{display:inline;}
</style>
<title>网站布局配置</title></head><body><div class="main400">
布局支持<a href="../ubbcl.asp?sid=<%=sid%>">UBB语言</a><br/>
<form method="post" action="layout.asp?act=art">
文章页:<br/><textarea name="tplArticle" cols="45" rows="5"/><%=tplArticle%></textarea>
<input type="submit" value="保存"/>
<input type="hidden" name="submit1" value="1"/>
<input type="hidden" name="sid" value="<%=sid%>"/>
</form>
<form method="post" action="layout.asp?act=art">
<input name="tplArticle" type="hidden" value="<%=stdarticle%>"/>
<input type="submit" value="恢复"/>
<input type="hidden" name="submit1" value="1"/>
<input type="hidden" name="sid" value="<%=sid%>"/>
</form><br/>
<form method="post" action="layout.asp?act=list">
文章列表:<br/><textarea name="tplList" cols="45" rows="5"/><%=tplList%></textarea>
<input type="submit" value="保存"/>
<input type="hidden" name="submit1" value="1"/>
<input type="hidden" name="sid" value="<%=sid%>"/>
</form>
<form method="post" action="layout.asp?act=list">
<input name="tplList" type="hidden" value="<%=stdlist%>"/>
<input type="submit" value="恢复"/>
<input type="hidden" name="submit1" value="1"/>
<input type="hidden" name="sid" value="<%=sid%>"/>
</form><br/>
<form method="post" action="layout.asp?act=topic">
论坛页:<br/><textarea name="tplTopic" cols="45" rows="5"/><%=tplTopic%></textarea>
<input type="submit" value="保存"/>
<input type="hidden" name="submit1" value="1"/>
<input type="hidden" name="sid" value="<%=sid%>"/>
</form>
<form method="post" action="layout.asp?act=topic">
<input name="tplTopic" type="hidden" value="<%=stdtopic%>"/>
<input type="submit" value="恢复"/>
<input type="hidden" name="submit1" value="1"/>
<input type="hidden" name="sid" value="<%=sid%>"/>
</form><br/>
<form method="post" action="layout.asp?act=post">
帖子页:<br/><textarea name="tplPost" cols="45" rows="5"/><%=tplPost%></textarea>
<input type="submit" value="保存"/>
<input type="hidden" name="submit1" value="1"/>
<input type="hidden" name="sid" value="<%=sid%>"/>
</form>
<form method="post" action="layout.asp?act=post">
<input name="tplPost" type="hidden" value="<%=stdpost%>"/>
<input type="submit" value="恢复"/>
<input type="hidden" name="submit1" value="1"/>
<input type="hidden" name="sid" value="<%=sid%>"/>
</form>

<%end if%><br/>
<a href="index.asp?sid=<%=sid%>">[网站配置]</a><%call Last2%>